import Home from "../views/Home.vue";
import News from "../views/News.vue";
import Login from "../views/Login.vue";
import User from "../views/User.vue";
import Loading from "../components/Loading.vue";
const routes = [
	{
		path: "/",
		name: "Home",
		component: Home,
	},
	{
		path: "/about",
		name: "About",
		// route level code-splitting
		// this generates a separate chunk (about.[hash].js) for this route
		// which is lazy-loaded when the route is visited.
		component: () =>
			import(/* webpackChunkName: "about" */ "../views/About.vue"),
	},
	{
		path: "/news",
		name: "News",
		component: News,
		meta: {
			auth: true,
		},
	},
	{
		path: "/login",
		name: "Login",
		component: Login,
	},
	{
		path: "/user",
		name: "User",
		component: User,
		meta: {
			auth: true,
		},
	},
	{
		path: "/loading",
		name: "Loading",
		component: Loading,
	},
];
export default routes;
